package com.authine.cloudpivot.ext.mapper;

import java.util.List;
import java.util.Set;

import org.apache.ibatis.annotations.Param;

import com.authine.cloudpivot.ext.domain.OrgDeptUser;
import com.authine.cloudpivot.util.MyMapper;

public interface OrgDeptUserMapper extends MyMapper<OrgDeptUser> {

    String selectMaxUpdateTime();

    Integer insertByDeptUser(OrgDeptUser orgDeptUser);

    Integer insertByDeptUserList(List<OrgDeptUser> subList);

    Integer deleteByUpdateTime(String extend3);

    Integer deleteByDeptId(@Param("deptId") String deptId);

    Integer deleteByDeptIdSet(Set<String> idSet);

    Integer deleteByUserId(@Param("userId") String userId);

    void clean();

}